# coding=utf-8
name = "root"
password = "admin"
for i in range(0,3):
    username = input("请输入用户名：")
    userpass = input("请输入密码：")
    if username==name and userpass==password:
        print("登录成功")
        break
    elif name!=username or password!=userpass:
        if i < 2:
            print("用户名或密码错误")
        else:
            print("用户已锁定")